package cn.huiyunche.base.service.constant;

/**
 * 正则表达式
 *
 * @author houjianhui
 */
public class RegularConstant {

    // 6-14位数字和字母组合密码
    public static final String reg = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,14}$";

    public static final String NUMBER = "^[0-9]+$";

    // 商户版账号规则
    public static final String ACCOUNT_RULES = "^[A-Z|a-z|0-9|_]+$";

    // 字母数字
    public static final String letter_number = "^[0-9A-Za-z]*$";

    // 两位小数的正数（非0开头）
    public static final String number_decimals = "^([0-9]*)+(.[0-9]{1,2})?$";

    // 牵引车车牌号
    public static final String tractorNumber = "^[\u4E00-\u9FA5]{1}[A-Za-z]{1}[\\dA-Za-z]{5}$";

    // 挂车车牌号
    public static final String trailerNumber = "^[\u4E00-\u9FA5|WJ][A-Za-z][\\dA-Za-z]{4}[\u4e00-\u9fa5]{1}$";

    // 校验表达式中不能存在特殊字符
    public static final String special = "^[\u4E00-\u9FA5|A-Z|a-z|0-9|#|.]+$";
}
